package com.fpx.open.platform.domain.vo;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * jaxb支持list类型
 * 
 * @author sunkey
 * @date Apr 8, 2013 9:29:07 AM
 * @version 1.0.0
 * @copyright fpx.com
 */
@XmlRootElement(name = "data", namespace = "")
public class ListVo<T> extends ArrayList<T> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ListVo() {
		super(10);
	}
	
	public ListVo(Collection<? extends T> c) {
		super(c);
	}

	@XmlElement(name = "items", namespace = "")
	public List<T> getList() {
		return this;
	}
}